package admrouter

import (
	"github.com/gin-gonic/gin"
	"yundian/internel/app/handlers/pcl/admin/exporthandler"
	"yundian/internel/app/middlewares"
	"yundian/internel/pkg/dingo"
)

func InitImportRouter() dingo.ApiRouter {
	return func(g *gin.RouterGroup) {
		{

			e := g.Group("export")

			//导出下载
			e.GET("downloadExcel", exporthandler.DownloadExportExcel)
			//e.GET("cs", exporthandler.HanderDownload)
			e.Use(middlewares.JwtAuthMiddleware)
			e.GET("orderExport", exporthandler.HandelOrderExport)                   //订单导出
			e.GET("orderKfExport", exporthandler.HandelOrderKfExport)               //订单导出（客服页面帐号）
			e.GET("placesExport", exporthandler.HandelPlacesExport)                 //网点导出
			e.GET("placeOperateLog", exporthandler.HandlePlaceOperateLog)           //门店操作日志导出
			e.GET("smallPlacePloyExport", exporthandler.HandelSmallPlacePloyExport) //网点导出
			e.GET("placePloyExport", exporthandler.HandelPlacePloyExport)           //网点导出
			e.GET("deviceExport", exporthandler.HandelDeviceExport)                 //设备导出
			e.GET("placeTotalExport", exporthandler.HandelPlaceTotalExport)         //网点统计导出
			e.GET("refundExport", exporthandler.HandelRefundExport)                 //订单导出
			e.GET("agentCashExport", exporthandler.HandelAgentCashExport)           //代理提现导出
			e.GET("branchUserExport", exporthandler.HandelBranchUserListExport)     //代理提现导出
			e.GET("placeLevelLogExport", exporthandler.HandlePlaceLevelLogExport)
			e.GET("repairExport", exporthandler.HandelRepairExport)        // 设备故障导出
			e.GET("userTotalExport", exporthandler.HandleUsersTotalExport) //用户统计导出
			e.GET("qrLogExport", exporthandler.HandleQrLogsExport)
			e.GET("serviceClickExport", exporthandler.HandleServiceClickExport)
			//e.GET("agentTotalExport", exporthandler.HandelPlaceTotalExport)

			e.GET("user-rank-list", exporthandler.HandelPartnerUserStatisticsListExport) //网点导出
		}
	}
}
